package com.liachen.stock.service;

import com.liachen.stock.controller.req.QueryStockSummaryReq;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface StockService {
    void saveStockInfo(String type);

    void exportStockSummaryInfo(String fileName, QueryStockSummaryReq req, HttpServletResponse response);

    void exportAllStockSummary(String fileName, Integer num, HttpServletResponse response);

    void queryStockTodayInfo(MultipartFile file, HttpServletResponse response);

    /**
     * 下载年报
     * @param stockNames
     * @throws IOException
     */
    void downAnnual(String stockNames) throws IOException;
}
